package com.cnbot.aimolib.bean;

import android.graphics.RectF;

import com.aimall.sdk.extractor.bean.ImoFaceFeature;
import com.aimall.sdk.trackerdetector.bean.ImoFaceInfo;

/**
 * @author ytf
 * Created by on 2021/06/05 10:06
 */
public class AimoRawFaceData{

    public ImoFaceInfo faceInfo;
    public ImoFaceFeature faceFeature;

    public RectF getRect(){
        return faceInfo.getRect();
    }

//    @Override
//    public int compareTo(AimoRawFaceData o) {
//        RectF me = faceInfo.getRect();
//        RectF other = o.faceInfo.getRect();
//        float areaMe = me.width() * me.height();
//        float areaOther = other.width() * other.height();
//        return Float.compare(areaMe, areaOther);
//    }

//    public PointF getNosePoint(){
//        float[] points = faceInfo.getPoints();
//        if(points != null && points.length >= 10){
//            return new PointF()
//        }
//    }

    @Override
    public String toString() {
        return "人脸 id = " + faceInfo.getId() + "，confidenceAvg = " + faceInfo.getConfidenceAvg() + "，quality = " + faceFeature.getQuality();
    }
}
